package com.rongc.client.freight.business.supply.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;

import org.json.JSONObject;


/*
*  发布货源接口
* */

public class SupplyPriceApi extends AbsRequest<SupplyPriceApi.SupplyPriceParams, JSONObject> {

    public SupplyPriceApi(SupplyPriceParams feedbackParams, Listener<JSONObject> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getGoodsOfferUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class SupplyPriceParams extends BaseParams {

        public SupplyPriceParams(String key,String lonA,
                                 String latA,String lonB,String latB) {
            put("key",key);
            put("lonA",lonA);
            put("latA",latA);
            put("lonB",lonB);
            put("latB",latB);
        }
    }


}
